package org.qengine.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.qengine.entity.PaperInfoEntity;
import org.qengine.entity.UserAnswersEntity;
import org.qengine.vo.UserAnswerVo;

import java.util.ArrayList;

public interface UserAnswersService extends IService<UserAnswersEntity> {
    //增删查改
    //解析成字符串
    public Integer add(UserAnswersEntity answer);

    public Integer delete(Long id);

    //通过学号获取该生做过的所有试卷情况,分页查询
    public Integer getByUserId(Long id);
    public IPage<UserAnswersEntity> search(UserAnswerVo userAnswerVo);

   // public String[] getAnswerString (Integer paperId, Long id);

    //判断后的正误列表，"1"为正确，"0"为错误
    public String stateList(UserAnswersEntity answer);


    UserAnswersEntity getStuAnswersByStuIDAndPaperID(Long stuID, Long paperID);


}
